Cropper.js
JavaScript image cropper.

Demo
16:9

Free Form

Components
image-cropper
Attributes
aspect-ratio Accepts a number, for example 1.7777777777777777 (16:9). Use a divide node like the image above to help. 1 is for square and 0 is for free form cropping background-color HEX code value for the modal background e.g. "#ffffff" button-color HEX code value for the color of the buttons button-padding Accepts any valid CSS values e.g. ".5rem 1rem" botton-rounding Accepts any valid CSS values e.g. ".375rem" input-id Unique ID used for the input element text Button text string text-color Button text color Events
onCrop Returns a Base64-encoded image file